package com.wpen.unit.web.controller.job;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.wpen.unit.service.job.JobUndoPlanService;
import com.wpen.unit.web.dto.job.JobUndoPlanListRequest;
import com.wpen.unit.web.dto.job.JobUndoPlanListResponse;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;

/**
 * 任务作业未执行维护
 * 
 * @author pg
 *
 */
@Tag(name = "任务作业未执行模块服务接口")
@RestController
@RequestMapping("/api")
public class JobUndoPlanController {
    @Autowired
    private JobUndoPlanService jobUndoPlanService;

    @Operation(summary = "任务作业未执行-列表查询")
    @PostMapping(value = "/jobUndoPlan/list",produces = MediaType.APPLICATION_JSON_VALUE)
    public JobUndoPlanListResponse queryListJobUndoPlan(@RequestBody @Valid JobUndoPlanListRequest jobUndoPlanListRequest ) {
        return jobUndoPlanService.queryListJobUndoPlan(jobUndoPlanListRequest);
    }

}
